﻿<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="usermanagement.aspx.cs"
    Inherits="E1_eMart.admin.usermanagement" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<!-- saved from url=(0038)./admin/auth/user/ -->
<html xmlns="http://www.w3.org/1999/xhtml" lang="vi" xml:lang="vi">
<head>
    <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
    <title>User Management | eMart site admin</title>
    <link rel="stylesheet" type="text/css" href="../css/base.css">
    <link rel="stylesheet" type="text/css" href="../css/changelists.css">
    <meta name="robots" content="NONE,NOARCHIVE">
</head>
<body class="change-list">
    <!-- Container -->
    <div id="container">
        <!-- Header -->
        <div id="header">
            <div id="branding">
                <h1 id="site-name">
                    eMart Administration</h1>
                    <span><a href="../index.aspx">eMart Home</a></span>
            </div>
            <div id="user-tools">
                Chào mừng bạn, <strong>Dũng Trần</strong>. <a href="#">Đổi mật
                    khẩu</a> / <a href="#">Thoát</a>
            </div>
        </div>
        <!-- END Header -->
        <div class="admin_nav">
            <ul>
                <li><a href="dashboard.aspx">
                        <img src="../images/house.png" alt="">Admin Home</a></li>
                    <li><a href="usermanagement.aspx">
                        <img src="../images/page_edit.png" alt="">User Management</a></li>
                    <li><a href="dashboard.aspx">
                        <img src="../images/plugin_edit.png" alt="">Statistics</a></li>
                    <li><a href="product_managerment.aspx">
                        <img src="../images/table_edit.png" alt="">Product Management</a></li>
                    <li><a href="comment_management.aspx" target="_blank">
                        <img src="../images/world.png" alt="">Comment Management</a></li>
                    <li><a href="producttype_management.aspx">
                        <img src="../images/table_edit.png" alt="">Product Type Management</a></li>
            </ul>
        </div>
        <style><!--

        .admin_nav {
            margin-top:10px;
            margin-left:15px;
            vertical-align:middle;
        }
        .admin_nav img {
            vertical-align:middle;
            margin-right:5px;
        }
        .admin_nav ul {
            padding:0;
            margin:0;
        }
        .admin_nav li {
            display:inline-block;
            margin-left:0;
        }
        .admin_nav li a {
            display:inline-block;
            padding:5px 20px;
            background-color: #c7e0c7;
            border-radius:10px;
            font-size:11px;
        }
        .admin_nav li a:active {
            background-color: #b3c9b3;
        }
        -->
    </style>
        <!-- Content -->
        <div id="content" class="flex">
            <h1>
                Chọn thành viên để thay đổi</h1>
            <div id="content-main">
                <ul class="object-tools">
                    <li><a href="#" class="addlink">Apply Changes</a></li>
                </ul>
                <div class="module filtered" id="changelist">
                    <div id="toolbar">
                        <form id="changelist-search" action="" method="get">
                        <div>
                            <!-- DIV needed for valid HTML -->
                            <label for="searchbar">
                                <img src="../images/icon_searchbox.png" alt="Search"></label>
                            <input type="text" size="40" name="q" value="" id="searchbar">
                            <input type="submit" value="Tìm kiếm">
                        </div>
                        </form>
                    </div>
                    <form id="changelist-form" action="" method="post">
                    <div style="display: none;">
                        <input type="hidden" id="csrfmiddlewaretoken" name="csrfmiddlewaretoken" value="SetCookiecsrftoken11b767f0e7f78025c8c6691e4f132a2cMaxAge31449600Path"></div>
                    <div style="display: none">
                        <input type="hidden" name="csrfmiddlewaretoken" value="SetCookiecsrftoken11b767f0e7f78025c8c6691e4f132a2cMaxAge31449600Path"></div>
                    <table cellspacing="0" id="result_list">
                        <thead>
                            <tr>
                                <th class="sorted ascending">
                                    <a href="#">Username </a>
                                </th>
                                <th>
                                    <a href="#">Mark rely buy</a>
                                </th>
                                 <th>
                                    <a href="#">Mark rely sell</a>
                                </th>
                                <th>
                                    <a href="#">Status </a>
                                </th>
                                <th>
                                    <a href="#">Blocked </a>
                                </th>
                            </tr>
                        </thead>
                        <tbody>
                            <%for (int i = 0; i < listAccount.Count; i++)
                              { %>
                            <tr class="row1">
                                <th>
                                <%if (loaiTaiKhoan == 3)
                                  { %>
                                    <a href="../admin/userinfo.aspx?mtk=<%=listAccount[i].MaTaiKhoan%>">
                                        <%=listAccount[i].TenTaiKhoan%></a>
                                <%}
                                  else
                                  { %>
                                    <a href="#">
                                        <%=listAccount[i].TenTaiKhoan%></a>
                                  <%                                    
                                  } %>
                                </th>
                                <td>
                                    <%=listAccount[i].DiemTinCayMua %>
                                </td>
                                <td>
                                    <%=listAccount[i].DiemTinCayBan %>
                                </td>
                                <td>
                                    <%=listAccount[i].TrangThai %>
                                </td>
                                <td>
                                    <input type="checkbox" />
                                </td>
                            </tr>
                            <%} %>
                        </tbody>
                    </table>
                    <p class="paginator">
                    <a href="usermanagement.aspx?p=<%= 0%>">First</a>
                        <%for (int i = 0; i < numberPage; i++)
                          { %>
                        <%if (Request.Params["p"] != null && int.Parse(Request.Params["p"].ToString()) == i)
                          { %>
                        <span class="this-page">
                            <%=i+1%></span>
                        <%} %>
                        <%else
                            { %>
                        <a href="usermanagement.aspx?p=<%=i %>">
                            <%=i+1%></a>
                        <%}
                          }%>                     
                             <a href="usermanagement.aspx?p=<%= numberPage-1%>">Last</a>                     
                    </p>
                    </form>
                </div>
            </div>
            <br class="clear">
        </div>
        <!-- END Content -->
        <div id="footer">
        </div>
    </div>
    <!-- END Container -->
</body>
</html>
